package com.thoughtful.amqp.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName: MyRabbitMQConfiguration
 * @author: zyx
 * @E-mail: 1377631190@qq.com
 * @DATE: 2021/2/7 15:27
 */
@Configuration
public class MyRabbitMQConfiguration {

    @Bean
    public MessageConverter messageConverter() {
        return new Jackson2JsonMessageConverter();
    }

}
